<%@ page import="java.sql.*"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Purchase Summary</title>
<style type="text/css">
<!--
.style3 {
	font-family: Arial;
	font-size: 12px;
}
-->
</style>
</head>
<body>
<table width="100%" height = "30"  border="1" cellpadding="0" cellspacing="0" bordercolor="#EEEEEE">
<%
int dLoop=0;
ResultSet Rs = task.physical_daily_basis.fetchDailyBasisList();
Rs.beforeFirst();
while (Rs.next())
{
%>
        <tr id=<%=Rs.getInt("id")%> onDblClick="CView_T(this);" onClick="highlightOn(this);">
          <td width="4%" align="left"><span class="style1">&nbsp;<%=Rs.getInt("id")%></span></td>
          <td width="7%" align="left"><span class="style1">&nbsp;<%=task.getFieldValueForId("country_master","name",Rs.getInt("origin_id"))%></span></td>
          <td width="24%" align="left"><span class="style1">&nbsp;<%=task.getFieldValueForId("grade_master","name",Rs.getInt("grade_id"))%></span></td>
   		  <% 
		  	String Ter_dt = Utils.dateToStr(Rs.getDate("terminal_month"));
			if (Ter_dt.compareTo("")==0)
			{
				Ter_dt = "";
			}
			else
			{
				Ter_dt = Utils.dateToStr(Rs.getDate("terminal_month")).substring(3);
			}
		  %>
          <td width="10%" align="left"><span class="style1">&nbsp;<%=task.getFieldValueForId("company_master","name",Rs.getInt("seller_id"))%></span></td>
		  <td width="6%" align="right"><span class="style1"><%=Utils.numberToStr(Rs.getFloat("offer_tons"),3,false)%>&nbsp;</span></td>
		  <td width="6%" align="left"><span class="style1">&nbsp;<%=Utils.dateToStr(Rs.getDate("shipment_last_date")).substring(3)%></span></td>
          <td width="7%" align="right"><span class="style1"><%=Utils.numberToStr(Rs.getFloat("offer_price"),2,false)%>&nbsp;</span></td>
          <td width="6%" align="right"><span class="style1"><%=Rs.getDouble("differential")%>&nbsp;</span></td>
          <td width="7%" align="right"><span class="style1"><%=Ter_dt%></span></td>
	      <td width="1%" align="center" bgcolor="#EEEEEE"><span class="style1">&nbsp;</span></td>
          <td width="8%" align="right"><span class="style1"><%=Utils.numberToStr(Rs.getFloat("basis_price"),2,false)%>&nbsp;</span></td>
          <td width="6%" align="right"><span class="style1"><%=Utils.numberToStr(Rs.getFloat("basis_diff"),2,false)%>&nbsp;</span></td>
          <td width="8%" align="right"><span class="style1"><%=Rs.getString("basis_terminal_month")%>&nbsp;</span></td>
	  
        </tr>
<%
		dLoop=dLoop+1;
}
%>
</table>
</body>
</html>
